package com.cskaoyan.utils;

//常数类
public class Constant {
    public static final String PHONE = "^((13[0-9])|(14[0-9])|(15[0-9])|(17[0-9])|(18[0-9]))\\d{8}$";

    public static final String REGEX_EMAIL = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";
    public static final String REGEX_MOBILE = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$";
    public static final String MAIL = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";

    public static final int SUCCESS = 0;
    public static final byte USER_LEVEL = 0;
    public static final int REFUND = 2;
    public static final int UPDATE = 1;
    public static final int WX_PAGE = 1;
    public static final byte GENDER = 0;
    public static final byte STATUS = 0;
    public static final int LENGTH = 4;
    public static final int WX_LIMIT = 4;
    public static final String SORT = "id";
    public static final String NICK = "";
    public static final String ORDER = "desc";
    //判断ip值
    public static final String IP = "127.0.0.1";
    public static final String MY_IP = "0:0:0:0:0:0:0:1";
    public static final int FAIL = 500;
    public static final int CHANGE_FAIL = 0;

    //订单状态：
    //101: 未付款
    //102: 用户取消
    //103: 系统取消
    //201: 已付款
    //202: 申请退款
    //203: 已退款
    //301: 已发货
    //401: 用户收货
    //402: 系统收货
    public static final short ORDER_NOT_PAY = 101;
    public static final short ORDER_USER_CANCELLED = 102;
    public static final short ORDER_SYSTEM_CANCELLED = 103;
    public static final short ORDER_PAID = 201;
    public static final short ORDER_REFUND = 202;
    public static final short ORDER_REFUNDED = 203;
    public static final short ORDER_SHIPPED = 301;
    public static final short ORDER_USER_RECEIVING = 401;
    public static final short ORDER_SYSTEM_RECEIVING = 402;

    //显示类型：
    // 0：全部
    // 1：待付款
    // 2：待发货
    // 3：待收货
    // 4：待评价
    public static final short SHOWTPYE_ALL = 0;
    public static final short SHOWTPYE_WAIT_PAY = 1;
    public static final short SHOWTPYE_WAIT_SHIP = 2;
    public static final short SHOWTPYE_WAIT_RECEIVING = 3;
    public static final short SHOWTPYE_WAIT_COMMENT = 4;

    //售后状态，0是可申请，1是用户已申请，2是管理员审核通过，3是管理员退款成功，4是管理员审核拒绝，5是用户已取消
    public static final short AFTERSALE_ALLOW = 0;
    public static final short AFTERSALE_REFUNDED = 1;
    public static final short AFTERSALE_PASS = 2;
    public static final short AFTERSALE_SUCCESS = 3;
    public static final short AFTERSALE_REFUSED = 4;
    public static final short AFTERSALE_CANCELLED = 5;

    //优惠卷:已经领取过了
    public static final int COUPON_RECEIVED = 740;

    //仅供新人领取
    public static final int COUPON_ONLY_NEW = 741;

    //仅供兑换码兑换
    public static final int COUPON_ONLY_EXCHANGE = 743;

    //优惠卷:兑换码不正确
    public static final int COUPON_CODE_FALUT = 742;

    //优惠券状态：已使用
    public static final int COUPON_USED = 1;

    //优惠卷已经领完
    public static final int COUPON_IS_EMPTY = 745;

    //通过购物车下单
    public static final int BUY_CART = 0;

    //不使用优惠券
    public static final int NOT_COUPON = -1;

}
